package router

import (
	"gin-vue-admin/api/v1"
	"gin-vue-admin/middleware"
	"github.com/gin-gonic/gin"
)

func InitTimetableRouter(Router *gin.RouterGroup) {
	TimetableRouter := Router.Group("timetable").Use(middleware.OperationRecord())
	{
		TimetableRouter.POST("createTimetable", v1.CreateTimetable)   // 新建Timetable
		TimetableRouter.DELETE("deleteTimetable", v1.DeleteTimetable) // 删除Timetable
		TimetableRouter.DELETE("deleteTimetableByIds", v1.DeleteTimetableByIds) // 批量删除Timetable
		TimetableRouter.PUT("updateTimetable", v1.UpdateTimetable)    // 更新Timetable
		TimetableRouter.GET("findTimetable", v1.FindTimetable)        // 根据ID获取Timetable
		TimetableRouter.GET("getTimetableList", v1.GetTimetableList)  // 获取Timetable列表

		//buff
		TimetableRouter.GET("findTimetableByTeacherName", v1.FindTimetableByTeacherName)        // 根据TeacherName获取Timetable
		TimetableRouter.GET("findTimetableByClassId", v1.FindTimetableByClassId)        	   // 根据ClassId获取Timetable
	}
}
